﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantastPlatform.Community.IMode;
using FantastPlatform.Community.Model;
using FantastPlatform.Framework.IService;

namespace FantastPlatform.Community.IService
{
    public interface IBusinessService:IDataService<IBusiness>
    {
        /// <summary>
        /// 保存商业铺面及人员
        /// </summary>
        /// <param name="business"></param>
        void SaveBusiness(IBusiness business);
        /// <summary>
        /// 根据街道得到所有门牌信息
        /// </summary>
        /// <param name="streetName"></param>
        /// <returns></returns>
        List<object> GetStreetNumberInfo(string streetName);

        IList<IBusiness> SearchByCondition(string name, string streetName, int policeManId);

        IList<IBusiness> GetBusinessByAddress(string address);
    }
}
